check if list contains any empty element in c#

106

check if list contains any empty element in c# -

if (myList.Any(i => i != null))
{
    DoSomeThing();
}

Comments

Submit
0 Comments